Page({
  /**
   * 页面的初始数据
   */
  data: {
    video: "",
  },
  videoPlay() {
    this.videoContext.play()
  },

  videoPause() {
    this.videoContext.pause()
  },

  videoPlayBackRate() {
    this.videoContext.playbackRate(1.5)
  },

  videorequestFullScreen() {
    this.videoContext.requestFullScreen()
  },

  videoSeek0() {
    this.videoContext.seek(0)
  },

  bindInputBlur: function (e) {
    this.inputValue = e.detail.value
  },

  bindSendDanmu: function () {
    this.videoContext.sendDanmu({
      text: this.inputValue,
      color: "#FFFFF"
    })
  },
  onReady: function () {
    this.videoContext = wx.createVideoContext('Video')
  },

  onLoad(options) {
    const videoSrc = decodeURIComponent(options.src); 
    console.log("接收到的视频路径:", videoSrc);
    this.setData({
      video:videoSrc
    })
  },
  
})